package com.cloudfun.campusshare.common.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * Created by Huqin on 2020/3/4
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "贷款信息")
public class LoanDTO {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("金融机构/贷款人id")
    private String lenderId;

    @ApiModelProperty("贷款金额")
    private Double loanAmount;

    @ApiModelProperty("项目id集合")
    private List<String> projectIds;

    @ApiModelProperty("用途说明")
    @Length(max = 500, message = "用途说明限制500个字符")
    private String purpose;

    @ApiModelProperty(value = "附件id列表")
    private List<String> attachIdList;

}
